package com.xgzit.xgzmall.auth.feign;

import com.xgzit.common.utils.R;
import com.xgzit.xgzmall.auth.vo.SocialUserVo;
import com.xgzit.xgzmall.auth.vo.UserLoginVo;
import com.xgzit.xgzmall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author xgz
 * @Date 2021-06-03 7:54
 */
@FeignClient("xgzmall-member")
public interface MemberFeignService {

    @PostMapping("member/member/register")
    R register(@RequestBody UserRegisterVo vo);

    @PostMapping("member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("member/member/oauth2/login")
    R oauth2login(@RequestBody SocialUserVo vo);
}
